Repository navigation
spacemit: skip MoE M8 padding for narrow small-token projections - #89
Conversation
Assisted-by: Codex
|
Please name this as an exception to M8 tail padding, not a bypass of the M8 kernel. |
Assisted-by: Codex
|
The guard uses the tensor shape and broadcast layout to decide when to skip M8 padding for a partial tail group. Full groups of eight rows still use the existing M8 path. On K3, I tested 20 operator cases covering T=1–5, N=512 and 1024, and both sparse and concentrated expert routing. The maximum NMSE against the scalar reference was 1.58e-5. For the tested T=2–4 cases that hit the guard, throughput was 1.15–1.59× that of the padded path. |
fee8e41
into
spacemit-com:mtmd-backend
Summary